package cn.sunflower.common.jwt;

import java.util.Arrays;

/**
 * 自定义的Payload字段
 */
public class UserDefinedPayload {

    private String jobNum;
    private String phone;
    /**
     * 用户ID
     */
    private String userId;

    /**
     * 登陆名
     */
    private String loginName;

    /**
     * 头像
     */
    private String headPortrait;

    /**
     * 角色ID列表
     */
    private String[] roleIdList;

    /**
     * 租户ID
     */
    private String tenantId;

    /**
     * 平台
     * 第三方企业
     */
    private String tenantType;

    /**
     * 真实姓名
     */
    private String realName;

    /**
     * 身份类型
     */
    private String identityType;

    public UserDefinedPayload() {

    }

    @Override
    public String toString() {
        return "UserDefinedPayload{" +
                "jobNum='" + jobNum + '\'' +
                ", phone='" + phone + '\'' +
                ", userId='" + userId + '\'' +
                ", loginName='" + loginName + '\'' +
                ", headPortrait='" + headPortrait + '\'' +
                ", roleIdList=" + Arrays.toString(roleIdList) +
                ", tenantId='" + tenantId + '\'' +
                ", tenantType='" + tenantType + '\'' +
                ", realName='" + realName + '\'' +
                ", identityType='" + identityType + '\'' +
                '}';
    }

    public String getJobNum() {
        return jobNum;
    }

    public void setJobNum(String jobNum) {
        this.jobNum = jobNum;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public UserDefinedPayload(String userId, String loginName, String headPortrait, String tenantId, String tenantType, String realName, String identityType) {
        this.userId = userId;
        this.loginName = loginName;
        this.headPortrait = headPortrait;
        this.tenantId = tenantId;
        this.tenantType = tenantType;
        this.realName = realName;
        this.identityType = identityType;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getHeadPortrait() {
        return headPortrait;
    }

    public void setHeadPortrait(String headPortrait) {
        this.headPortrait = headPortrait;
    }

    public String[] getRoleIdList() {
        return roleIdList;
    }

    public void setRoleIdList(String[] roleIdList) {
        this.roleIdList = roleIdList;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getTenantType() {
        return tenantType;
    }

    public void setTenantType(String tenantType) {
        this.tenantType = tenantType;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getIdentityType() {
        return identityType;
    }

    public void setIdentityType(String identityType) {
        this.identityType = identityType;
    }


}
